package com.thjk.bdf.service;

import java.util.List;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.thjk.bdf.common.base.BasicResp;
import com.thjk.bdf.common.entity.SmsLog;
/**
 * 
 * @创建日期： 2019年11月4日
 * @author 束凯
 * @Description：短信处理类
 */
@FeignClient(value ="bdf-service"/*,path="/bdfservice"*/)
public interface SmsService {
	
	/**
	 * 
	 * @param PhoneInfo 客户经理手机号信息
	 * @return 通用结果
	 * @Description：发送短信
	 */
	@LoadBalanced
	@RequestMapping(value = "/sms/sendSmsMsg", method = RequestMethod.POST)
	public BasicResp sendSmsMsg (@RequestBody SmsLog smsLog);
	/**
	 * 
	 * @Description: 手机获取短信记录验证
	 * @params:PhoneInfo  手机基本信息
	 */
	@LoadBalanced
	@RequestMapping(value = "/sms/getPhoneHistory", method = RequestMethod.GET)
	public List<SmsLog> getPhoneHistory(@RequestBody SmsLog smsLog);
	/**
	 * 
	 * @Description: 短信验证码验证
	 * @params:参宿说明
	 */
	@LoadBalanced
	@RequestMapping(value = "/sms/checkSmsMsg", method = RequestMethod.POST)
	public BasicResp checkSmsMsg(@RequestBody SmsLog smsLog);
	
	

}
